package com.itcoon.demo.config;/**
 * @author Athric Yu
 * 2024/11/25
 **/

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.itcoon.cloud.framework.webmvc.config.JacksonConfigurer;
import com.itcoon.cloud.framework.webmvc.registry.JacksonSerializersRegistry;
import org.springframework.context.annotation.Configuration;

/**
 *
 *
 * @author Athric Yu
 * 2024/11/25
 **/
@Configuration
public class JacksonConfiguration implements JacksonConfigurer {

    @Override
    public void registerSerializers(JacksonSerializersRegistry registry) {
        registry.register(Long.class, new ToStringSerializer());
        registry.register(Long.TYPE, new ToStringSerializer());
    }

}
